﻿namespace EOrm
{
    /// <summary>
    /// 数据字段
    /// </summary>
    public interface IField
    {
        /// <summary>
        /// 字段名
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 数据库内字段名
        /// </summary>
        string DbName { get; set; }
        /// <summary>
        /// 字段类型名
        /// </summary>
        string DbTypeName { get; set; }

        /// <summary>
        /// 字段是否自动填充
        /// </summary>
        bool IsAutoFill { get; set; }

        /// <summary>
        /// 字段是否为主键
        /// </summary>
        bool IsKey { get; set; }

        /// <summary>
        /// 字段是否为空
        /// </summary>
        bool IsNullable { get; set; }

        /// <summary>
        /// 字段数据库名称是否启用分割线名法
        /// </summary>
        bool IsSeperated { get; set; }
    }
}
